package offer;

/**
 * 描述:
 *
 * @author Madison You
 * @created 22:33
 */
public class Easy_58_ReverseLeftWords {
    public static void main(String[] args) {
        System.out.println(new Easy_58_ReverseLeftWords().reverseLeftWords("abcdefg", 2));
    }

    public String reverseLeftWords(String s, int n) {

        return new StringBuilder(s.substring(n)).append(s.substring(0, n)).toString();
    }
}
